package cn.edu.scau.cmi.suwenpeng.chapter09;
import java.math.*;
import java.util.Scanner;

@SuppressWarnings("unused")
public class Exercise10 {

	public static void main(String[] args) {
		double numberOne,numberTwo;
		@SuppressWarnings("resource")
		Scanner reader=new Scanner(System.in );
		numberOne=reader.nextDouble();
		numberTwo=reader.nextDouble();
		System.out.println(Math.abs(numberOne));
		double maxNumber=Math.max(numberOne,numberTwo);
		System.out.println(maxNumber);
		System.out.println(Math.min(numberOne,numberTwo));
		System.out.println(Math.pow(numberOne,numberTwo));
		System.out.println(Math.sqrt(numberTwo));
		
	}

}
